from django.urls import re_path
from .views import city, enterprise, recruits

urlpatterns = [
    # """招聘模块路由"""
    re_path('^city/hotlist/$', city.CityHotlistView.as_view()),  # 热门城市
    re_path('^enterprise/(?P<id>.+)/visit/$', enterprise.EnterpriseIdVisitView.as_view()),  # 增加企业访问次数
    re_path('^enterprise/(?P<id>.+)/collect/$', enterprise.EnterpriseIdCollectView.as_view()),  # 收藏公司
    re_path('^enterprise/search/hotlist/$', enterprise.EnterpriseSearchHotlistView.as_view()),  # 热门企业
    re_path('^enterprise/(?P<id>.+)/$', enterprise.EenterpriseIdView.as_view()),  # 企业详情
    re_path('^recruits/search/latest/$', recruits.RecruitsSearchLatestView.as_view()),  # 最新职位
    re_path('^recruits/search/recommend/$', recruits.RecruitsSearchRecommendView.as_view()),  # 推荐职位
    re_path('^recruits/search/city/keyword/$', recruits.RecruitsSearchCityKeywordView.as_view()),  # 搜索职位
    re_path('^recruits/(?P<id>.+)/visit/$', recruits.RecruitsIdVisitView.as_view()),  # 增加职位访问次数
    re_path('^recruits/(?P<id>.+)/collect/$', recruits.RecruitsIdCollectView.as_view()),  # 收藏职位
    re_path('^recruits/(?P<id>.+)/$', recruits.RecruitsIdView.as_view()),  # 职位详情
]
